package com.objectproject.main.service.subsystem;

import java.util.ArrayList;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.objectproject.main.dao.MembershipDAOImpl;
import com.objectproject.main.dao.MyGroupDAOImpl;
import com.objectproject.main.dao.MyGroupHierarchyDAOImpl;
import com.objectproject.main.model.MyGroup;
import com.objectproject.main.model.MyUser;
import com.objectproject.main.service.subsystem.policy.PolicyAndConfigurationRepository;

@Service
public class MyGroupHierarchyResolver {
	
	@Autowired
	MembershipDAOImpl membershipDAOImpl;
	
	@Autowired
	MyGroupDAOImpl myGroupDAOImpl;
	
	@Autowired
	MyGroupHierarchyDAOImpl myGroupHierarchyDAOImpl;
	
	public boolean isSuperGroupOf(MyGroup myGroup, MyGroup targetGroup){
		return false;
	}
	
	public boolean isSubGroupOf(MyGroup myGroup, MyGroup targetGroup){
		return false;
	}
	
	public ArrayList<MyGroup> getAncestorGroupsOf(MyUser myUser){
		return null;
	}
	
	public ArrayList<MyGroup> getDescndentGroupsOf(MyGroup myGroup){
		return null;
	}
	
	public MyGroup getRootGroup(){
		return myGroupDAOImpl.selectMyGroupById(PolicyAndConfigurationRepository.ROOT_GROUP_ID);
	}
	
}
